<?php echo $this->partial('header.phtml', array('urlbase'=>$this->urlbase)); ?>  

<!-- Main -->
<div class="wrapper style1">

    <div class="container">
        <div class="row 200%">
            
            <div class="4u" id="sidebar">
                <h3>Conheça Nossos Serviços:</h3>
                <?php foreach($this->servicos as $ser){ ?>
                <section>
                    <a href="<?php echo $this->urlbase.'/'.$this->controller.'/index/id/'.$ser['SER_ID']; ?>"><?php echo $ser['SER_NOM']?></a>
                </section>
                <?php } ?>
                
                <br>
                <h3><a href="<?php echo $this->urlbase.'/produtos'; ?>">Conheça Nossos Produtos</a></h3>
                
                <h3><a href="<?php echo $this->urlbase.'/parceiros'; ?>">Conheça Nossos Parceiros</a></h3>
            </div>
            
            <?php if($this->servico['SER_ID'] > 0){ 
                $img = glob('public/upload/stservico/'.$this->servico['SER_ID'].'.*');
                $img = $img[0];
            ?>
            <div class="8u important(collapse)" id="content">
                <article id="main">
                    <header>
                        <h2><?php echo $this->servico['SER_NOM']; ?></h2>
                        <p>
                           <?php echo $this->servico['SER_DSC']; ?>
                        </p>
                    </header>
                    <a href="#" class="image featured"><img src="<?php echo $this->urlbase.'/'.$img; ?>" alt="<?php echo $this->servico['SER_NOM']; ?>" /></a>
                    <p>
                        <?php echo $this->servico['SER_TXT']; ?>
                    </p>
                </article>
                
                <article id="main" class="special">
                    <header>
                        <h2>Agendar Horário</h2>
                    </header>
                    <p>

                    </p>
                    <div class="row 150%">
                        <div class="12u">

                            <!-- Contact Form -->
                            <section>
                                <form id="form" method="post" action="#">
                                    <div class="row 50%">
                                        <div class="6u">
                                            <input type="text" name="nome" id="contact-name" placeholder="Nome" required="">
                                        </div>
                                        <div class="6u">
                                            <input type="text" name="telefone" id="contact-email" class="telefone" placeholder="Telefone" required="">
                                        </div>
                                    </div>
                                    <div class="row 50%">
                                        <div class="12u">
                                            <input type="hidden" name="servico" value="<?php echo $this->servico['SER_ID']; ?>" />
                                            <input type="text" id="contact-servico" placeholder="Serviço" value="<?php echo $this->servico['SER_NOM']; ?>" readonly="">
                                        </div>
                                    </div>
                                    <div class="row 50%">
                                        <div class="6u">
                                            <input type="text" name="data" id="contact-data" class="data" placeholder="Data" required="">
                                        </div>
                                        <div class="6u">
                                            <input type="text" name="hora" id="contact-hora" class="hora" placeholder="Hora" required="">
                                        </div>
                                    </div>
                                    <div class="row 50%">
                                        <div class="12u">
                                            <textarea name="mensagem" id="contact-message" placeholder="Mensagem" rows="4"></textarea>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="12u">
                                            <ul class="actions">
                                                <li><input type="submit" class="style1" value="Agendar"></li>
                                                <li><input type="reset" class="style2" value="Limpar"></li>
                                            </ul>
                                        </div>
                                    </div>
                                </form>
                            </section>

                        </div>
                    </div>
                    
                </article> 
                
            </div>
            <?php } ?>
            
        </div>
    </div>
</div>

<?php echo $this->partial('footer.phtml', array('urlbase'=>$this->urlbase)); ?>